import Vue from 'vue';

import VueRouter from 'vue-router';

import Login from '@/Login.vue';
import Detail from '@/Detail.vue';

Vue.use(VueRouter);

const routes = [
  { path: '/', component: Login },
  { path: '/detail', component: Detail }
];


const router = new VueRouter({
    mode: 'history',
    routes
});


export default router;